import type {App} from 'vue';


import VxeUI from 'vxe-pc-ui'
import 'vxe-pc-ui/lib/style.css'
// table 中的小图标
import VxeUIPluginRenderAntd from '@vxe-ui/plugin-render-antd'
import '@vxe-ui/plugin-render-antd/dist/style.css'


// ...纯表格
import VxeTable from 'vxe-table'
import 'vxe-table/lib/style.css'

import {VxeFormats} from "#/components/VxeTable/vxeFormats";
import {VxeValidators} from "#/components/VxeTable/vxeValidators";
import {VxeRenderer} from "#/components/VxeTable/vxeRender";
import vxeSetting from "#/components/VxeTable/vxeSetting";

export function registerGlobComp(app: App) {
  app.use(VxeUI).use(VxeTable);
  initVxeConfig();
}

function initVxeConfig() {
  VxeUI.use(VxeUIPluginRenderAntd)
  VxeUI.setConfig(vxeSetting.vxeTable);
  VxeFormats();
  VxeRenderer();
  VxeValidators();

}

